package service.appinfo;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.appinfo.AppInfoMapper;

import pojo.AppInfo;
@Service
public class AppInfoServiceImpl implements AppInfoService{
@Autowired
private AppInfoMapper appInfoMapper;
	@Override
	public List<AppInfo> getAppInfoList(String softwareName, Integer status,
			Integer categoryLevel1, Integer categoryLevel2,
			Integer categoryLevel3, Integer flatformId, Integer devId,
			Integer currentPageNo, Integer pageSize,Integer guanliyonghu) {
		// TODO Auto-generated method stub
		return appInfoMapper.getAppInfoList(softwareName, status, categoryLevel1, categoryLevel2, categoryLevel3, flatformId, devId, currentPageNo, pageSize,guanliyonghu);
	}

	@Override
	public int getAppInfoCount(String softwareName, Integer status,
			Integer categoryLevel1, Integer categoryLevel2,
			Integer categoryLevel3, Integer flatformId, Integer devId,Integer guanliyonghu) {
		// TODO Auto-generated method stub
		return appInfoMapper.getAppInfoCount(softwareName, status, categoryLevel1, categoryLevel2, categoryLevel3, flatformId, devId,guanliyonghu);
	}

	@Override
	public int getYangZheng(String APKName) {
		// TODO Auto-generated method stub
		return appInfoMapper.getYangZheng(APKName);
	}

	@Override
	public int add(AppInfo appInfo) {
		// TODO Auto-generated method stub
		return appInfoMapper.add(appInfo);
	}

	@Override
	public int deleteAppInfoById(Integer delId) {
		// TODO Auto-generated method stub
		return appInfoMapper.deleteAppInfoById(delId);
	}

	@Override
	public int xiuGai(AppInfo appInfo) {
		// TODO Auto-generated method stub
		return appInfoMapper.xiuGai(appInfo);
	}

	@Override
	public int updateVersionId(Integer versionId, Integer id) {
		// TODO Auto-generated method stub
		return appInfoMapper.updateVersionId(versionId, id);
	}

	@Override
	public int shangjia(Integer id) {
		// TODO Auto-generated method stub
		return appInfoMapper.shangjia(id);
	}

	@Override
	public int xiajia(Integer id) {
		// TODO Auto-generated method stub
		return appInfoMapper.xiajia(id);
	}

	@Override
	public int updateStutas(Integer id,Integer sid) {
		// TODO Auto-generated method stub
		return appInfoMapper.updateStutas(id,sid);
	}

}
